import 'dart:convert';
import 'package:getx_demo_2/generated/json/base/json_field.dart';
import 'package:getx_demo_2/generated/json/task_entity.g.dart';

@JsonSerializable()
class TaskEntity {
  String? id;
  String? name;
  String? avatar;
  String? createdAt;

  TaskEntity();

  factory TaskEntity.fromJson(Map<String, dynamic> json) =>
      $TaskEntityFromJson(json);

  Map<String, dynamic> toJson() => $TaskEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
